package com.itheima.reggie.mapper;

import com.itheima.reggie.entity.Employee;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: dw
 * @Date 2022/3/8 20:20
 */
public interface EmployeeMapper {
    //用户登录
    Employee login(Employee employee);

    //分页查询
    List<Employee> findAll(@Param("name") String name);

    //添加用户
    Integer save(Employee employee);

    //根据id回显页面
    Employee findById(Long id);

    //修改用户
    Integer update(Employee employee);
}
